/**
 * Created by linxin on 2017/3/11.
 */
export default {
  setSidebar : ({commit}, param) => commit('SETSIDEBAR',{sidebar: param}),
  setDevice : ({commit}, param) => commit('SETDEVICE',{device: param}),
  setSize : ({commit}, param) => commit('SETSIZE',{size: param}),
  toggleSideBar({ commit }) {
    commit('TOGGLE_SIDEBAR')
  },
  closeSideBar({ commit }, { withoutAnimation }) {
    commit('CLOSE_SIDEBAR', withoutAnimation)
  },
  toggleDevice({ commit }, device) {
    commit('TOGGLE_DEVICE', device)
  }
}
